<template>
  <div>
    <div class="dashboard-container">
      

      <div class="big-back-box">
        <div class="top" style="margin-bottom: 20px">求助详情</div>
        <!-- 卡片 -->
        <div style="width: 600px; margin: 0 auto">
          <el-form ref="form" :model="form" label-width="100px">
            <!-- id -->
            <el-form-item label="求助编号" style="width: 1000px">
              <span style="margin-left: 10px; font-size: 15px"
                ><b>{{ this.form.id }}</b></span
              >
            </el-form-item>
            <!-- 求助标题 -->
            <el-form-item label="标题" style="width: 1000px">
              <span style="margin-left: 10px; font-size: 15px"
                ><b>{{ this.form.title }}</b></span
              >
            </el-form-item>
            <!-- 求助类型 -->
            <el-form-item label="类型" style="width: 1000px">
              <span style="margin-left: 10px; font-size: 15px"
                ><b>{{ this.form.type }}</b></span
              >
            </el-form-item>
            <!-- 所在地区 -->
            <el-form-item label="地区" style="width: 1000px">
              <span style="margin-left: 10px; font-size: 15px"
                ><b>{{ this.form.region }}</b></span
              >
            </el-form-item>
            <!-- 发起时间 -->
            <el-form-item label="发起时间" style="width: 1000px">
              <span style="margin-left: 10px; font-size: 15px"
                ><b>{{ this.form.initiationTime }}</b></span
              >
            </el-form-item>
            <!-- 状态 -->
            <el-form-item label="状态" style="width: 1000px">
              <span style="margin-left: 10px; font-size: 15px"
                ><b>{{ this.form.state }}</b></span
              >
            </el-form-item>
            <!-- 抢单人数 -->
            <el-form-item label="抢单人数" style="width: 1000px">
              <span style="margin-left: 10px; font-size: 15px"
                ><b>{{ this.form.orderGrabbingNumber }}</b></span
              >
            </el-form-item>
            <!-- 接单服务商名称 -->
            <!-- <el-form-item label="服务商名称" style="width: 1000px">
              <span style="margin-left: 10px; font-size: 15px"
                ><b>{{ this.form.enterpriseName }}</b></span
              >
            </el-form-item> -->
            <!-- 求助方ID -->
            <el-form-item label="求助方ID" style="width: 1000px">
              <span style="margin-left: 10px; font-size: 15px"
                ><b>{{ this.form.buyerId }}</b></span
              >
            </el-form-item>
            <!-- 内容描述 -->
            <el-form-item label="内容" style="width: 600px">
              <span style="margin-left: 10px; font-size: 15px"
                ><b>{{ this.form.content }}</b></span
              >
            </el-form-item>
            <!-- <el-form-item label="内容">
              <el-input
                type="textarea"
                v-model="form.content"
                rows="5"
                :disabled="true"
              ></el-input>
            </el-form-item> -->
            <!-- 价格 -->
            <!-- <el-form-item label="价格" style="width: 1000px">
              <span style="margin-left: 10px; font-size: 15px; color: red"
                ><b>500元</b></span
              >
            </el-form-item> -->

            <!-- 按钮 -->
            <el-form-item>
              <!-- <router-link
                :to="{ path: '/lawHelp/lawyerSelfRecommend', query: form }"
              >
                <el-button type="primary" style="margin-right: 20px"
                  >抢单</el-button
                >
              </router-link> -->
              <router-link to="/lawHelp/lawyerHelpList">
                <el-button>返回</el-button>
              </router-link>
            </el-form-item>
          </el-form>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {}, // 传过来的求助数据，用于提取求助id
      // price: "", // 价格不在求助数据里，在订单部分，价格获取太麻烦，在订单详情里查看吧。
    };
  },
  // 初始化
  mounted() {
    console.log("this.$route.query" + this.$route.query);
    this.form = this.$route.query;
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
// 页头LOGO
.top {
  height: 50px;
  font-size: 30px;
  text-align: center;
  line-height: 50px;
}

// 大盒子
.big-back-box {
  width: 1080px;
  margin: 0 auto;
}

// 原框架自带
.dashboard {
  &-container {
    margin-top: 30px;
    // margin-left: 30px;
    // margin-right: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

// 页脚
.footer {
  height: 300px;
  background-color: blue;
}
.footer-back-box {
  width: 1080px;
  margin-left: 45px;
}
.footer-title {
  height: 30px;
  line-height: 40px;
  padding-left: 10px;
}
.footer-link-card {
  width: 200px;
  background-color: orange;
  margin-left: 10px;
}

// 模板-卡片
.text {
  font-size: 14px;
}
.item {
  padding: 18px 0;
}
.box-card {
  width: 480px;
}
</style>